MDLIB = mdemonapllib.a

$(MDLIB): $(MDLIB)(mdauth.o) $(MDLIB)(mdclose.o) $(MDLIB)(mdconnect.o) $(MDLIB)(mdconnect_and_auth.o) $(MDLIB)(mdresume.o) $(MDLIB)(mdsend_command_and_get_nresponses.o) $(MDLIB)(mdsend_command_and_get_response.o) $(MDLIB)(mdsend_sms.o) $(MDLIB)(mdsuspend.o)
mdauth.o: mdauth.c
	gcc -c mdauth.c
mdclose.o: mdclose.c
	gcc -c mdclose.c
mdconnect.o: mdconnect.c
	gcc -c mdconnect.c
mdconnect_and_auth.o: mdconnect_and_auth.c
	gcc -c mdconnect_and_auth.c
mdresume.o: mdresume.c
	gcc -c mdresume.c
mdsend_command_and_get_nresponses.o: mdsend_command_and_get_nresponses.c
	gcc -c mdsend_command_and_get_nresponses.c
mdsend_command_and_get_response.o: mdsend_command_and_get_response.c
	gcc -c mdsend_command_and_get_response.c
mdsend_sms.o: mdsend_sms.c
	gcc -c mdsend_sms.c
mdsuspend.o: mdsuspend.c
	gcc -c mdsuspend.c

clean:
	-rm mdauth.o mdclose.o mdconnect.o mdconnect_and_auth.o mdresume.o mdsend_command_and_get_nresponses.o mdsend_command_and_get_response.o mdsend_sms.o mdsuspend.o
